class CreateSections < ActiveRecord::Migration
  def self.up
    create_table :sections do |t|
      t.integer :x,:null =>false
      t.integer :y,:null =>false
      t.string :name,:null =>false
      t.string :desc
      t.boolean :status,:null =>false
      t.integer :channel_id,:null =>false
      t.string :level,:null =>false
      #1普通图集 2图文 3小说 4专辑栏目
      t.string :col_type,:null =>false
      t.boolean :is_ad,:null =>false
      t.string :ad_url
      t.string :pic
      t.timestamps
    end
  end

  def self.down
    drop_table :sections
  end
end
